 <template>
  <div>
    <button @click="add">点击添加</button>
    <button @click="del">点击删除</button>
    {{obj.name}}
    {{obj.age}}
  </div>
</template>
 <script>
export default {
  data() {
    return {
      obj:{name:"张三"},
    };
  },
  methods: {
  add(){
  	this.$set(this.obj, "age",456 )
  },
  del(){
    this.$delete(this.obj,"name")
  }
  },
  computed: {},
};
</script>
 <style lang='css'>
</style>